import request from "@/utils/request";

// http://120.211.58.75:50003/admin.schoolAdminPower/searchAdminMenuPage // 菜单列表 + 条件搜索
export const searchAdminMenuPage = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminPower/searchAdminMenuPage",
    method: "POST",
    data,
  });
};
// http://120.211.58.75:50003/admin.schoolAdminPower/addAdminMenu  // 新增菜单
export const addAdminMenu = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminPower/addAdminMenu",
    method: "POST",
    data,
  });
};
// .http://120.211.58.75:50003/admin.schoolAdminPower/editAdminMenu  //编辑菜单
export const editAdminMenu = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminPower/editAdminMenu",
    method: "POST",
    data,
  });
};
// http://120.211.58.75:50003/admin.schoolAdminPower/deleteAdminMenu // 删除菜单
export const deleteAdminMenu = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminPower/deleteAdminMenu",
    method: "POST",
    data,
  });
};
// 资源列表带分页http://120.211.58.75:50003/admin.schoolAdminPower/searchAdminResourcePage
export const searchAdminResourcePage = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminPower/searchAdminResourcePage",
    method: "POST",
    data,
  });
};
// editAdminResource 修改资源
// http://120.211.58.75:50003/admin.schoolAdminPower/editAdminResource
export const editAdminResource = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminPower/editAdminResource",
    method: "POST",
    data,
  });
};
// http://120.211.58.75:50003/admin.schoolAdminPower/addAdminResource
// 新增资源
export const addAdminResource = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminPower/addAdminResource",
    method: "POST",
    data,
  });
};
// http://120.211.58.75:50003/admin.schoolAdminPower/deleteAdminResource
// 删除资源
export const deleteAdminResource = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminPower/deleteAdminResource",
    method: "POST",
    data,
  });
};
